export default {
    inputPwdMerge(arr){
        var pwdtemp =""
        if(arr.length!=0){
            for (var i in arr){
                pwdtemp += arr[i];
            }
        }
        return pwdtemp
    },
    findJobForList(id,jobs){
        for(var i=0;i<jobs.length;i++){
             if(id==jobs[i].id){
                 return jobs[i]
             }
        }
        return null;
    },
    lineFeed(str,target){
        if(str===null) return ''
        if(str.indexOf('\n')!=-1){
            str = str.replace(/\n/g, target);
        }
        //console.log("info",str)
        return str;
    },
    lineFeedCustom(str,target){
        if(str===null) return ''
        if(str.indexOf(',')!=-1){
            str = str.replace(/,/g, target);
        }
        //console.log("info",str)
        return str;
    }
}